package com.example.tfliteonwatch;

import androidx.appcompat.app.AppCompatActivity;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class testFinish extends AppCompatActivity {
    private Button finsh_confirm;

    @SuppressLint("MissingInflatedId")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        para.timeFlag=0;
        para.totalID++;
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_test_finish);
        finsh_confirm=(Button) findViewById(R.id.finsh_confirm);
        finsh_confirm.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {   //测试结束，跳回主界面
                Intent intent=new Intent(testFinish.this, MainActivity.class).setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_NEW_TASK);
                startActivity(intent);
            }
        });
    }
}